package com.todo.biz.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.user.api.response.BaseUserInfoResponse;
import com.todo.user.api.response.BatchQuerySimplyUserInfoResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/2/25 16:35
 * @description
 */
@FeignClient(name = "todoUserService", url = "http://localhost:18000")
public interface UserInfoRemoteService {

    @Operation(summary = "根据用户id查询用户基础信息")
    @PostMapping("/api/userInfo/queryBaseUserAccountInfoByUserId")
    BizResponse<BaseUserInfoResponse> queryBaseUserAccountInfoByUserId(@RequestBody Long userId);

    @Operation(summary = "根据用户idList查询用户基础信息")
    @PostMapping("/api/userInfo/batchQuerySimplyUserInfo")
    BizResponse<BatchQuerySimplyUserInfoResponse> batchQuerySimplyUserInfo(@RequestBody List<Long> userIdList);
}
